package com.zl.common.dto.pagination;

import java.util.List;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;


/**
 * 通用table数据列表用。返回时可把分页参数原样返回
 * @param <T>
 */
@Getter
@Setter
public class PageResVO<T> implements java.io.Serializable {
    
    private static final long serialVersionUID = 1L;
    
    @ApiModelProperty(value="数据集合")
    private List<T> data;
    
    @ApiModelProperty(value="总条数")
    private long count;
    
    @ApiModelProperty(value="页码")
    private int page;
    
    @ApiModelProperty(value="每页多少条数据")
    private int limit;
    
    @ApiModelProperty(value="用于排序的字段")
    private String sort;
    
    @ApiModelProperty(value="排序方式的参数名称asc或desc")
    private String order;
}
